//
//  MoveGuideViewController.m
//  SHHCPhone
//
//  Created by gfsh on 14-6-22.
//  Copyright (c) 2014年 sheng long. All rights reserved.
//

#import "MoveGuideViewController.h"
#import "MoveGuideView.h"
#import "MoveGuideCell.h"

@implementation MoveGuideViewController


- (void)viewDidLoad
{
    [super viewDidLoad];
//    navigationBarView.title = @"运动指导";
////    if (showBackButton) {
////        [navigationBarView setNormalLeftButton];
////    }else{
////        [navigationBarView setNormalLeftMenuButton];
////    }
//    [self initContentView];
}

- (void)initContentView
{
    MoveGuideView *mgv = [[MoveGuideView alloc]initWithFrame:CGRectMake(0, NAVIGATIONBAR_HEIGHT, CURRENT_CONTENT_WIDTH, CURRENT_CONTENT_HEIGHT-NAVIGATIONBAR_HEIGHT)];
    mgv.date = [NSDate date];
    
    MoveGuideCell *mgc = [[MoveGuideCell alloc]initWithFrame:CGRectMake(0, 0, mgv.frame.size.width-(19+35/2-14/2+1)-12, 79)];
    mgc.titleLab.text = @"低强度运动";
    mgc.detailLab.text = @"每天3-5次";
    mgc.sportIV.image = [UIImage imageNamed:@"运动指导页-低强度运动icon"];
    
    MoveGuideCell *mgc1 = [[MoveGuideCell alloc]initWithFrame:CGRectMake(0, 0, mgv.frame.size.width-(19+35/2-14/2+1)-12, 79)];
    mgc1.titleLab.text = @"有氧运动";
    mgc1.detailLab.text = @"每周3-5次";
    mgc1.sportIV.image = [UIImage imageNamed:@"运动指导页-有氧运动-1icon"];

    MoveGuideCell *mgc2 = [[MoveGuideCell alloc]initWithFrame:CGRectMake(0, 0, mgv.frame.size.width-(19+35/2-14/2+1)-12, 79)];
    mgc2.titleLab.text = @"柔韧和力量训练";
    mgc2.detailLab.text = @"每周2-3次";
    mgc2.sportIV.image = [UIImage imageNamed:@"运动指导页-柔韧和力量icon"];

    MoveGuideCell *mgc3 = [[MoveGuideCell alloc]initWithFrame:CGRectMake(0, 0, mgv.frame.size.width-(19+35/2-14/2+1)-12, 79)];
    mgc3.titleLab.text = @"有氧运动";
    mgc3.detailLab.text = @"如走路、慢跑、体操等";
    mgc3.sportIV.image = [UIImage imageNamed:@"运动指导页-有氧运动icon"];

    MoveGuideCell *mgc4 = [[MoveGuideCell alloc]initWithFrame:CGRectMake(0, 0, mgv.frame.size.width-(19+35/2-14/2+1)-12, 79)];
    mgc4.titleLab.text = @"活动时间";
    mgc4.detailLab.text = @"每次30-40分钟";
    mgc4.sportIV.image = [UIImage imageNamed:@"运动指导页-活动时间icon"];

    mgv.cells = @[mgc,mgc1,mgc2,mgc3,mgc4];
    
    [self.view addSubview:mgv];
}

- (void)leftButtonClick
{
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
}

@end
